﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeepAnimals.DAL._DataAccess.SqlServer
{
    /// <summary>
    /// Classe de base pour la génération des chaînes SQL.
    /// </summary>
    public class SqlServerSqlGenerator : AbstractSqlGenerator
    {


        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="mappedObject">The mapped object.</param>
        public SqlServerSqlGenerator(DataMapper mappedObject)
            : base(mappedObject)
        { }

        /// <summary>
        /// Gets the lastly database-generated primary key.
        /// </summary>
        /// <exception cref="System.NotImplementedException"></exception>
        public override string GetLastGeneratedPrimaryKey()
        {
            return "SELECT @@IDENTITY;";
        }



    }
}